export const getHomeData: () => Promise<string> = async () => {
    // 模拟ajax请求
    const p = new Promise<string>((resolve) => {
        setTimeout(() => {
            resolve('home data');
        }, 3000);
    })
    return p;
}

export const getCenterData: () => Promise<string> = async () => {
    const p = new Promise<string>((resolve) => {
        setTimeout(() => {
            resolve('center data');
        }, 3000);
    })
    return p;
}